var http = axios.create({
  timeout: 10000,
  headers: {'Content-Type': 'application/x-www-form-urlencoded'},
  transformRequest: [function (data) {
    var postData = "";
    for (var key in data) {
      postData += key + "=" + data[key] + "&";
    }
    console.log(postData);
    return postData;
  }]
});
http.interceptors.response.use(function (response) {
  return response;
}, function (error) {
  if (error.response.status === 400) {
    Vue.prototype.$message.error({message: error.response.data.errorMsg, showClose: true});
  }
  return Promise.reject(error);
});